<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Chameleon-Mini: Configurations</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Chameleon-Mini
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="index.html">index</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">Configurations </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>Each setting of the Chameleon-Mini has an active configuration, which defines the behavior of the Chameleon-Mini. A detailed description of what defines a configuration can be found at <a class="el" href="struct_configuration_type.html">ConfigurationType</a>.</p>
<h1>Supported Codecs </h1>
<p>A Configuration basically is defined by the codec it uses and by the application functions that use this codec. Currently there are two different codecs implemented:</p><ol type="1">
<li>The ISO14443A codec for emulation.</li>
<li>The ISO14443A codec for the reader function.</li>
</ol>
<h1>Supported Configurations </h1>
<p>The following table shows which configurations are available currently. </p><table class="doxtable">
<tr>
<th>Configuration name </th><th>Codec </th><th>Description  </th></tr>
<tr>
<td><code>NONE</code> </td><td>None </td><td>No functionality, Chameleon-Mini does nothing, the current setting is skipped when cycling through the settings </td></tr>
<tr>
<td><code>MF_ULTRALIGHT</code> </td><td>ISO14443A emulation </td><td>Emulates a MiFare Ultralight card </td></tr>
<tr>
<td><code>MF_CLASSIC_1K</code> </td><td>ISO14443A emulation </td><td>Emulates a MiFare Classic 1k card </td></tr>
<tr>
<td><code>MF_CLASSIC_4K</code> </td><td>ISO14443A emulation </td><td>Emulates a MiFare Classic 4k card </td></tr>
<tr>
<td><code>MF_CLASSIC_1K_7B</code> </td><td>ISO14443A emulation </td><td>Emulates a MiFare Classic 1k card with 7-byte UID. </td></tr>
<tr>
<td><code>MF_CLASSIC_4K_7B</code> </td><td>ISO14443A emulation </td><td>Emulates a MiFare Classic 4k card with 7-byte UID. </td></tr>
<tr>
<td><code>ISO14443A_SNIFF</code> </td><td>ISO14443A emulation </td><td><b>Currently incomplete</b>. Sniffs ISO14443A communication between a reader and a card. </td></tr>
<tr>
<td><code>ISO14443A_READER</code> </td><td>ISO14443A reader </td><td>The Chameleon-Mini works as a reader and can process different procedures in order to obtain a cards UID etc. </td></tr>
</table>
<h1>Configuration Changing procedure<a class="anchor" id="Anchor_ConfigurationChange"></a></h1>
<p>When the configuration is changed, no matter whether by command line or during a setting change, the following steps are done:</p><ol type="1">
<li>The codec deinitialization function of the currently active configuration is called.</li>
<li>Possibly pending timeout commands are aborted.</li>
<li>The configuration struct (<a class="el" href="struct_configuration_type.html">ConfigurationType</a>) for the currently active configuration is overwritten with the new configuration struct.</li>
<li>The codec initialization function of the new configuration is called.</li>
<li>The application initialization function of the new configuration is called. </li>
</ol>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 24 2020 14:46:30 for Chameleon-Mini by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
